//
//  ShowMore.m
//  GoodWayClient
//
//  Created by HuiDong on 15/12/3.
//  Copyright © 2015年 HuiDong. All rights reserved.
//

#import "ShowMore.h"

@interface ShowMore ()
@property (weak, nonatomic) IBOutlet UIButton *loadBtn;
@property (weak, nonatomic) IBOutlet UIView *loadTextView;

@end

@implementation ShowMore

- (IBAction)loadMoreBtnClick:(id)sender {
    self.loadBtn.hidden = YES;
    self.loadTextView.hidden = NO;
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        self.block();//块回调  添加app
        self.loadBtn.hidden = NO;
        self.loadTextView.hidden = YES;
    });
}

+ (instancetype)footView {
    return [[[NSBundle mainBundle]loadNibNamed:@"ShowMore" owner:nil options:nil]lastObject];
}

@end
